package com.runfast.waimai.service.impl;

import com.runfast.common.service.BaseService;
import com.runfast.waimai.dao.mapper.RunfastActivityMapper;
import com.runfast.waimai.dao.model.RunfastActivity;
import com.runfast.waimai.dao.model.RunfastActivityExample;
import com.runfast.waimai.service.RunfastActivityService;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@Service
public class RunfastActivityServiceImpl extends BaseService<RunfastActivity, Integer, RunfastActivityExample> implements RunfastActivityService {
    @Override
    public RunfastActivityMapper getMapper() {
        return (RunfastActivityMapper)super.getMapper();
    }


    @Override
    public List<RunfastActivity> getAgentZoneActivityIn(int agentId, List<Integer> activityTypeList) {
        return getMapper().getAgentZoneActivityIn(agentId, activityTypeList);
    }

    @Override
    public RunfastActivity getActivityWithTarget(Integer activityId, org.springframework.data.domain.Pageable pageable) {
        return getMapper().getActivityWithTarget(activityId,pageable);
    }

    @Override
    public List<RunfastActivity> findBusinessActivity(Integer businessId, List<Integer> activityTypeList) {
        return getMapper().findBusinessActivity(businessId, activityTypeList);
    }


}